package com.shop.servlet.cate;
import java.io.IOException;
import java.util.ArrayList;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.shop.entity.SHOP_CATEGORY;
import com.shop.service.SHOP_CATEGORYDao;

/**
 * Servlet implementation class ToCateAdd
 */
@WebServlet("/manage/tocateadd")
public class ToCateAdd extends HttpServlet {
	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
     ArrayList<SHOP_CATEGORY> catelist = SHOP_CATEGORYDao.selectAll();
		
		request.setAttribute("catelist", catelist);
		request.getRequestDispatcher("/manage/admin_cateadd.jsp").forward(request, response);
		
	}


}
